{include file="index/head" /}
<div class="box">
	<form method="post" action="{:url('dels')}" id="listform" data-type=ajax>
		<input type="hidden" name="nid" value="{$nid}" />
		<div class="box-head">
			<ul class="search">
				<li><span>搜索：</span></li>
				<li><span>状态</span>
					<select name="s_status" onchange="sycms.search('{:url('index')}')">
						<option value="">选择</option>
						<option value="1">是</option>
						<option value="0">否</option>
					</select>
				</li>
				<li>
					<span>关健字</span>
					<input type="text" class="intxt" name="title" placeholder="请输入搜索关健字" />
				</li>
				<li>
					<button type="button" class="btn" onclick="sycms.search('{:url('index')}')"><i class="icon-search"></i> 搜索</button>
				</li>
			</ul>
			<a href="javascript:history.go(0);" class="btn fr"><i class="icon-refresh"></i> 刷新</a>
		</div>
		<table class="table">
			<tr>
				<th width="100">ID</th>
				<th>账号</th>
				<th>头像</th>
				<th>用户名</th>
				<th>手机号</th>
				<th>性别</th>
				<th>唯一unionid</th>
				<th>openid</th>
				<th>登录token</th>
				<th width="10%">最后登录时间</th>
				<th width="10%">注册时间</th>
				<th>状态</th>
				<th width="200">操作</th>
			</tr>
			{volist name="list" id="v"}
			<tr>
				<td class="td1"><input type="checkbox" name="id[]" value="{$v.id}" />{$v.id}</td>
				<td>{$v.username}</td>
				<td><a href="{$v.head}" class="imgview"><img src="{$v.head|default='/public/admin/images/noimg.jpg'}" style="background:#eee;" alt="" width="30" height="30" /></a></td>
				<td>{$v.name}</td>
				<td>{$v.mobile}</td>
				<td>{if condition="$v.gender eq 1"}男{else}女{/if}</td>
				<td>{$v.unionid}</td>
				<td>{$v.openid}</td>
				<td>{$v.token}</td>
				<td>{$v.logintime}</td>
				<td>{$v.datetime}</td>
				<td>{if condition="!$v.status"}<font color="#00CCCC">正常</font>{else}<font color="red">锁定</font>{/if}</td>
				<td><a href="{:url('detail',['id'=>$v.id,'nid'=>$v.nid])}" class="btn"><i class="icon-edit"></i> 查看</a> <a href="javascript:void(0);"
					 onclick="sycms.del('{:url('del',['id'=>$v.id])}')" class="btn red"><i class="icon-trash-o"></i> 删除</a></td>
			</tr>
			{/volist}
			{if $list[0]}
			<tr>
				<td colspan="13">
					<ul class="operat">
						<li class="li1">
							<input type="checkbox" onclick="sycms.allselect(this)" />
							全选</li>
						<li><span>操作：</span>
							<select name="status" onchange="sycms.plattr('{:url('status')}',this)">
								<option value="">锁定</option>
								<option value="1">是</option>
								<option value="0">否</option>
							</select>
						</li>
					</ul>
				</td>
			</tr>
			<tr>
				<td colspan="13">
					<div class="page">{$page}</div>
				</td>
			</tr>
			{/if}
		</table>
	</form>
</div>
